package com.qfedu.mtl.dao;

import com.qfedu.mtl.entity.Good;
import com.qfedu.mtl.query.GoodQuery;

import java.util.List;

/**
 * @Date 2023/9/26 19:08
 */
public interface GoodDao {
    List<Good> selectData(Integer page, Integer size, GoodQuery query);

    Integer selectTotal(GoodQuery query);

    Good selectById(Integer id);

    int insert(Good good);

    int delete(Integer id);

    int deleteBatch(List<Integer> ids);

    int update(Good good);
}
